//
// Created by fanghr on 17-12-31.
//

#ifndef PROJECT_SHM_PACK_H
#define PROJECT_SHM_PACK_H
#include "../include.h"
#include "global_var.h"

namespace imu_global{
    class shm_pack{
    public:
        shm shm_imu_time;
        shm shm_imu_acceleration;
        shm shm_imu_angularVelocity;
        shm shm_imu_angle;
        shm shm_imu_magneticOutput;
        shm shm_imu_portStatus;
        shm shm_imu_pressureAndHeightOutput;
        shm shm_imu_latitudeAndLongitudeOutput;
        shm shm_imu_groundSpeed;
        shm shm_imu_quaternion;
    public:
        shm_pack():
            shm_imu_time("imu_time",sizeof(imu_time)),
            shm_imu_acceleration("imu_acceleration", sizeof(imu_acceleration)),
            shm_imu_angularVelocity("imu_angularVelocity", sizeof(imu_angularVelocity)),
            shm_imu_angle("imu_angle", sizeof(imu_angle)),
            shm_imu_magneticOutput("imu_magneticOutput", sizeof(imu_magneticOutput)),
            shm_imu_portStatus("imu_portStatus", sizeof(imu_portStatus)),
            shm_imu_pressureAndHeightOutput("imu_pressureAndHeightOutput",sizeof(imu_pressureAndHeightOutput)),
            shm_imu_latitudeAndLongitudeOutput("imu_latitudeAndLongitudeOutput", sizeof(imu_latitudeAndLongitudeOutput)),
            shm_imu_groundSpeed("imu_groundSpeed",sizeof(imu_groundSpeed)),
            shm_imu_quaternion("imu_quaternion", sizeof(imu_quaternion)){}
    }shm_pack;
}
#endif //PROJECT_SHM_PACK_H
